import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//svg插件需要配置代码
import 'virtual:svg-icons-register'
// 引入自定义插件对象：注册整个项目全局组件
import GloablComponents from './components'
import './style/index.scss'
import { zhCn } from 'element-plus/es/locales.mjs'
import router from './router'
import pinia from './store'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app=createApp(App)
app.use(ElementPlus,{
    locale:zhCn//element-plus国际化配置
})
// 安装自定义插件
app.use(GloablComponents)
app.use(router)
//安装仓库
app.use(pinia)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
app.mount('#app')
